package com.ruoyi.demo.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 sys_goods
 * 
 * @author ruoyi
 * @date 2022-05-31
 */
@Data //添加
@TableName("sys_goods")
public class SysGoods extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId
    private Long goodsId;

    /**
     * 客户id
     */
    private Long customerId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称" )
    private String name;

    /**
     * 商品重量
     */
    @Excel(name = "商品重量" )
    private Long weight;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格" )
    private BigDecimal price;

    /**
     * 商品时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd" )
    @Excel(name = "商品时间" , width = 30, dateFormat = "yyyy-MM-dd" )
    private Date date;

    /**
     * 商品种类
     */
    @Excel(name = "商品种类" )
    private String type;
}


